<?php
include_once("../service/productService.php");
include_once("../util/constant.php");
include_once("../util/functionUtil.php");

$proStatId = $_GET["proStatId"];
echo $proStatId;
if(deleteProductStatus($proStatId)){
    removeDir("../image/product-status/".$proStatId);
    echo "<script>window.location.href = '../admin/product-status.php?action=".DELETE_SUCCESSFULLY."';</script>";
} else {
    echo "<script>window.location.href = '../admin/product-status.php?action=".DELETE_FAILED."';</script>";
}
?>